package com.lixin.web.controller;


import com.lixin.entity.Users;
import com.lixin.model.request.Request;
import com.lixin.redis.HashRedisUtil;
import com.lixin.redis.StringRedisUtil;
import com.lixin.service.IUsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description:
 * Copyright:   Copyright (c)2023
 * Company:     sci
 *
 * @author: 张李鑫
 * @version: 1.0
 * Create at:   2023-07-28 23:07:42
 * <p>
 * Modification History:
 * Date         Author      Version     Description
 * ------------------------------------------------------------------
 * 2023-07-28     张李鑫                     1.0         1.0 Version
 */

@RestController
public class HelloController {


    @Autowired
    private HashRedisUtil hashRedisUtil;

    @Autowired
    private StringRedisUtil stringRedisUtil;

    @Autowired
    private IUsersService iUsersService;

    @RequestMapping("/helloUser")
    public Object helloUser(@RequestBody Request<Users> request) {
        return iUsersService.login(request.getModel());
    }

}
